const {ipcRenderer} = require('electron')
window.fromWebToElectron = function (event, data) {
    ipcRenderer.send(event, data) // 比如收到请求关闭窗口
}

window.sendMsgByWhatsapp = function (whatsAppAccount, phone, msg) {
    ipcRenderer.send("startNewChat", {
        phone: phone,
        viewId: 3,
        text: msg,
        whatsAppAccount
    })
}

let supportLanguagesList = []
window.setSupportLanguages = function (arg) {
    console.log("支持语言", arg);
    supportLanguagesList = arg
}